package com.clw.classfile.constantpool.info;

/**
 * Created by chengliwei on 2018/11/12.
 */
public class ConstantFieldRef implements ConstantInfo {

    public static final byte TAG = 9; // value = 9
    private short classIndex; // 指向声明字段的类或者接口描述符 CONSTANT_Class_info的索引项
    private short nameAndTypeIndex; // 指向字段描述符 CONSTANT_NameAndType的索引项

    public ConstantFieldRef(short classIndex, short nameAndTypeIndex){
        this.classIndex = classIndex;
        this.nameAndTypeIndex = nameAndTypeIndex;
    }
}
